package henu.javaweb.action;

import java.util.ArrayList;

import henu.javaweb.bean.Student;
import henu.javaweb.bean.Teacher;

import javax.servlet.http.HttpServletRequest;

public interface ITeacherDao {
	/**
	 * 通过前端输入的教师工号和密码实现登陆
	 * @param tid
	 * @param password
	 * @return Teacher对象
	 */
	public Teacher login(String tid,String password);
	/**
	 * 通过该方法管理员登录时判断教师是否是管理员
	 * @return
	 */
	public boolean Admin();
	public int update(HttpServletRequest request);
	public Teacher findByTid(String tid);
	public ArrayList<Teacher> getAllTeacher();
	public int add(HttpServletRequest request);
	public boolean updateStuPass(String sno,String spass);
	//public boolean updateTcPass(String tid,String tpass);
	/**
	 * 通过教师id获取该教师
	 */
	public Teacher findById(String tid);

}
